﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SCongratulateInfoMsg extends IMessageBase
    {
        public var congratulateValue:int;
        public var day:int;
        public var todayCongratulateTimes:int;
        public var todayBecongratulateTimes:int;
        public var todayExper:int;
        public var todayVitalEnergy:int;
        public var hadGain:int;
        public const _type:int = 15156;
        public static var _regist:SCongratulateInfoMsg = new SCongratulateInfoMsg(true);

        public function SCongratulateInfoMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SCongratulateInfoMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.congratulateValue);
            param1.writeInt(this.day);
            param1.writeInt(this.todayCongratulateTimes);
            param1.writeInt(this.todayBecongratulateTimes);
            param1.writeInt(this.todayExper);
            param1.writeInt(this.todayVitalEnergy);
            param1.writeInt(this.hadGain);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.congratulateValue = param1.readInt();
            this.day = param1.readInt();
            this.todayCongratulateTimes = param1.readInt();
            this.todayBecongratulateTimes = param1.readInt();
            this.todayExper = param1.readInt();
            this.todayVitalEnergy = param1.readInt();
            this.hadGain = param1.readInt();
            return;
        }// end function

    }
}
